package com.cutePet.pet.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.cutePet.pet.dao.PetFileDao;
import com.cutePet.pet.domain.PetFileDO;
import com.cutePet.pet.service.PetFileService;



@Service
public class PetFileServiceImpl implements PetFileService {
	@Autowired
	private PetFileDao petFileDao;
	
	@Override
	public PetFileDO get(Long fileId){
		return petFileDao.get(fileId);
	}
	
	@Override
	public List<PetFileDO> list(Map<String, Object> map){
		return petFileDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return petFileDao.count(map);
	}
	
	@Override
	public int save(PetFileDO petFile){
		return petFileDao.save(petFile);
	}
	
	@Override
	public int update(PetFileDO petFile){
		return petFileDao.update(petFile);
	}
	
	@Override
	public int remove(Long fileId){
		return petFileDao.remove(fileId);
	}
	
	@Override
	public int batchRemove(Long[] fileIds){
		return petFileDao.batchRemove(fileIds);
	}
	
}
